package cc.plumgo.ss.yo.entity;




public class EnemyFactory {
	public static final int ENM_FLYBOOK = 0;
	public static final int ENM_PEN = 1;
	public static final int ENM_ERASER = 2;
	public static final int ENM_BROOM = 3;
	public static final int ENM_BOTTLE = 4;
	public static final int ENM_BARREL = 5;	
	public static final int ENM_PENINPEN = 6;
	public static final int ENM_DUSTPAN = 7;
	public static final int ENM_GATEKEEPER = 8;
	public static final int ENM_TYPE_NUM = 9;
	
	
	public static Enemy createEnemy(int enmType, int x, int y) {
		Enemy entity = null;
		switch(enmType) {
		case ENM_FLYBOOK: {
			entity = new FlyBook(x, y);
			break;
		}
		case ENM_PEN: 
		case ENM_ERASER: 
		case ENM_BROOM: 
		case ENM_BOTTLE: 
		case ENM_BARREL: 
		case ENM_PENINPEN:
		case ENM_DUSTPAN: 
		case ENM_GATEKEEPER: {
			entity = new Monster(enmType, x, y);
		}
		}
		return entity;
	}
	
}
